package com.zetatech.bdp.entity;

import com.zetatech.bdp.annotation.WriterHandler;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;
import java.util.Map;

/**
 * @author cheng.cao@zetatech.com.cn
 */
@Getter
@Setter
@NoArgsConstructor
@WriterHandler("com.zetatech.bdp.writer.hive.HiveWriterHandler")
public class HiveWriter implements Writer {
    /**
     * hive.metastore.uris
     */
    private String hiveMetastoreUris;
    /**
     * fs.defaultFS
     */
    private String defaultFS;
    /**
     * 输出到hive表
     */
    private String database;
    /**
     * 输出到hive表
     */
    private String table;
    /**
     * 存储类型：text/parquet/etc..
     */
    private String store;
    /**
     * 分区字段，有序
     * 不分区时，该字段为null 或者 空数组
     */
    private List<String> partitions;
    /**
     * 其他选项
     */
    private Map<String, String> conf;
}